package com.example.designpatterns.decorator;

/**
 * 加火腿的装饰器
 */
public class HamBattercake extends BattercakeDecorator {

    public HamBattercake(Battercake battercake) {
        super(battercake);
    }

    @Override
    public String getMsg() {
        return super.getMsg() + "+1跟火腿";
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 1;
    }
}